package com.junxonline.plat.dao.repository;

import com.junxonline.plat.dao.model.Device;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: DeviceRepository
 * @Description: 设备数据操作类
 * @author JunX
 */
@Repository
public interface DeviceRepository extends JpaRepository<Device, Long>, JpaSpecificationExecutor<Device> {

    Device findByDeviceId(Long deviceId);

    List<Device> findByDeviceIdIn(Long[] deviceIds);

}
